package org.offsync.collection.conversion

class IteratorBase[A](val underlying: Iterator[A])
    extends java.util.Iterator[A] with java.util.Enumeration[A] {
  override def hasNext(): Boolean = underlying.hasNext
  override def next(): A = underlying.next
  override def remove(): Unit = throw new UnsupportedOperationException

  override def hasMoreElements(): Boolean = underlying.hasNext
  override def nextElement(): A = underlying.next
}